import request from '@/utils/request'
//获取回复我的人的列表
export function getPersonList(userId) {
  return request.get(`/message/sendMyMessagePerson/${userId}`)
}

//获取聊天消息
export function getMessageList(params) {
  return request.get('/message/getMessages', { params })
}

//标记消息为已读
export function remarkRead(data) {
  return request.post('/message/markMessageAsRead', data)
}


//获取未读消息总条数（所有）
export function getUnReadCount(userId) {
  return request.get(`/message/unreadCount/${userId}`)
}
